<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script src="resources/shadow-dom.js"></script>
</head>
<body>
<div>Pressing TAB key to navigate a shadow insertion point in the oldest shadow tree should not make the browser crash.</div>
<div id="before" tabindex="1"></div>
<div id="host"></div>
<script>
var shadowRoot = host.attachShadow({mode: 'open'});
var shadow = document.createElement("shadow");
shadowRoot.appendChild(shadow);
before.focus();
navigateFocusForward();
</script>
</body>
</html>
